home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
095
/
rbbscnv.arc
/
CNVDIR.ARC
/
CNVDIR.DOC
< prev
next >
Wrap
Text File
|
1986-11-10
|
3KB
|
69 lines
CNVDIR by Ken Goosens 8 November 1986
CNVDIR is a utility for converting pre-15.1A directory files into the
format necessary for 15.1A. Basically, it consolidates the many directory
files into one. The only directory file that MUST be converted is the
upload directory - because this file is now read randomly. For RBBS to
work properly, the upload directory must be fixed length, have only
file entries, and be in date order from oldest to newest.
You probably will want to convert all of your directory files into one
because
o no longer will you have to move entries from your upload directory
into smaller files.
o you can dynamically change how the files are classified.
o you classify the uploads simply by loading the upload directory
into your favorite editor and adding a category code at the end
(3 bytes).
o file searches will run faster. Especially N)ew.
An example of a simple upload system is provided. Copy all of these
files into a subdirectory and run CNVDIR to see how it works.
DIR.CAT is the list of directories belonging to the upload management
system. This drives the conversion. CNVDIR converts only those directories
listed here. It also inserts the category code provided in this file.
Create this file before you convert so that you have your directory
structure and codes laid out. My production version of DIR.CAT (DIR.PRD)
is provided as an example of how a complex directory structure can be built
with composite categories.
GAMES.DIR, OS.DIR, and FILES.DIR are 3 sample upload directories in pre-151A
format.
Type CNVDIR and you will get a screen of instructions and details.
It will produce a file called UPLOADS.FIX.
CAUTIONS
A good reason for not converting a directory file is that it is not to be
stored in date order. Eg. an alphabetical listing.
If the same file is listed in more than one directory, it will be listed
multiple times in the converted directory. You will have to edit out
duplicates.
After converting, you must still sort the new upload directory by date.
A good shareware program to do this is QSORT. Version 2.1 is included
with this release of CNVDIR. (The command for this is
QSORT UPLOADS.FIX /30:2 /27:2 /24:2).
Comments will be omitted from the new directory. But they can be added
back as text in DIR.CAT.
Files in the UPLOAD directory will be listed "backwards" physically but
chronologically forward. However, one case may require adjustment.
When you have a multi-part file broken up into separate parts, RBBS will
list the last first. So the proper physical order in the file for a 4
part file would be part 4, part 3, part 2, part 1 so that the order of
reading and presentation would be 1,2,3,4. Most people upload a
multi-part file in the order 1,2,3,4 which results in the stored order
1,2,3,4 rather than the needed 4,3,2,1. A smaller problem, but you may
want to rearrange such files.